<template>
  <div class="exam">
    <van-nav-bar title="考试记录" placeholder fixed left-arrow />
    <div class="card" v-for="i in 19" :key="i">
      <img src="@/assets/images/ksjl.png" />
      <div class="card__center">
        <div class="card__title">用时：23分12秒</div>
        <div class="card__time">2023-02-22 12:22:33</div>
      </div>
      <span class="card__score low">76分</span>
    </div>
  </div>
</template>
<script name="Exam" setup></script>
<style lang="scss" scoped>
.exam {
  padding: 12px 16px;
  background-color: #F5F9FC;
  min-height: 100vh;
  box-sizing: border-box;
  .card {
    padding: 20px 16px;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    img {
      width: 40px;
      height: 40px;
    }
    &__center {
      flex: 1;
      padding: 0 12px;
    }
    &__title {
      font-size: 16px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
      line-height: 22px;
    }
    &__time {
      padding-top: 6px;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #676b6b;
      line-height: 17px;
    }
    &__score {
      font-size: 18px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;

      line-height: 25px;
      &.low {
        color: #ff7140;
      }
      &.full {
        color: #0dc678;
      }
      &.medium {
        color: #ffa940;
      }
    }
  }
}
</style>